﻿package mortal.game.scene3D.model.data
{
    import flash.utils.*;
    import mortal.game.resource.*;

    public class ActionName extends Object
    {
        public static const Stand:String = "stand";
        public static const FightWait:String = "fightwait";
        public static const FlyStand:String = "flyStand";
        public static const SwimStand:String = "swimStand";
        public static const RoleMountStand:String = "mountStand01";
        public static const Walking:String = "run";
        public static const FightRun:String = "fightrun";
        public static const Fly:String = "fly";
        public static const Swim:String = "swim";
        public static const RoleMountWalk:String = "mountWalk01";
        public static const Sit:String = "sit";
        public static const Injury:String = "hurt";
        public static const Death:String = "die";
        public static const DeathSpecial:String = "die01";
        public static const Jump:String = "jump";
        public static const Somersault:String = "jump2";
        public static const Tornado:String = "tornado";
        public static const Collect:String = "gather";
        public static const StandStart:String = "standStart";
        public static const StandHidden:String = "standHidden";
        public static const Standing:String = "standing";
        public static const MountStand:String = "mountStand";
        public static const MountWalk:String = "mountWalk";
        public static const Sun:String = "Sun";
        public static const PlayMusical:String = "PlayMusical";
        public static const Dance:String = "Dance";
        public static const drunk:String = "drunk";
        public static const toast:String = "toast";
        public static const moraBeauty:String = "morra02";
        public static const moraThief:String = "morra03";
        public static const moraPolice:String = "morra01";
        public static const standActionList:Array = [Stand, FightWait, SwimStand, RoleMountStand];
        public static const walkingActionList:Array = [Walking, FightRun, Swim, RoleMountWalk];
        public static const deathActionList:Array = [Death, DeathSpecial];
        public static const jumpActionList:Array = [Jump, Somersault];
        public static const injuryActionList:Array = [Injury];
        public static const sitActionList:Array = [Sit];
        private static var _attackActionList:Array;
        private static var _leadActionDic:Dictionary;

        public function ActionName()
        {
            return;
        }// end function

        public static function get attackActionList() : Array
        {
            if (!_attackActionList)
            {
                _attackActionList = new Array();
                _attackActionList = GameDefConfig.instance.getItem("PlayerAttackAction", 1).text.split(",");
            }
            return _attackActionList;
        }// end function

        public static function get leadActionDic() : Dictionary
        {
            var _loc_1:Array = null;
            var _loc_2:Object = null;
            if (!_leadActionDic)
            {
                _leadActionDic = new Dictionary();
                _loc_1 = GameDefConfig.instance.getLeadActions();
                for each (_loc_2 in _loc_1)
                {
                    
                    _leadActionDic[_loc_2.text] = _loc_2.text1;
                }
            }
            return _leadActionDic;
        }// end function

    }
}
